
import '../mine/base_res.dart';

class ActivityMainListModel extends BaseItem{
  ActivityMainListModel({
      this.createdAt, 
      this.id, 
      this.activityName, 
      this.content,
      this.desc,
      this.cover,
      this.expiredIn, 
      this.link, 
      this.sort,
      this.status,});

  ActivityMainListModel.fromJson(dynamic json) {
    createdAt = json['createdAt'];
    id = json['id'];
    activityName = json['activityName'];
    content = json['content'];
    desc = json['desc'];
    cover = json['cover'];
    expiredIn = json['expiredIn'];
    link = json['link'];
    sort = json['sort']??0;
    title = json['title'];
    status = json['status'];
  }
  String? createdAt;
  String? id;
  String? activityName;
  String? content;
  String? desc;
  String? cover;
  String? expiredIn;
  String? link;
  int? sort;
  num? status;
  String? title;


  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['createdAt'] = createdAt;
    map['id'] = id;
    map['activityName'] = activityName;
    map['content'] = content;
    map['desc'] = desc;
    map['cover'] = cover;
    map['expiredIn'] = expiredIn;
    map['link'] = link;
    map['sort'] = sort;
    map['title'] = title;
    map['status'] = status;
    return map;
  }

  @override
  fromJson(json) {
    ActivityMainListModel.fromJson(json);
  }

}